// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'

import router from './router'
import Antd from 'ant-design-vue'//antd引入
import 'ant-design-vue/dist/antd.less'//样式
import App from './App'
import store  from  './store'
import filters from './filter.js' //filters 引入
import base from './assets/js/base.js' //全局函数引入

 import promise from 'es6-promise'
 promise.polyfill()

Vue.config.productionTip = false
Vue.use(Antd)
Vue.use(base)

//全局注册store
Vue.prototype.$store=store;
//过滤器
for(let key in filters){
  Vue.filter(key,filters[key]);
}
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
